import axios from 'axios'

const service = axios.create({
  baseURL: process.env.BASE_API,
  timeout: 10000
})

axios.interceptors.request.use(config => {
  console.log(config)
  return config
}, err => {
  console.log(err)
  Promise.reject(err)
})

export default service
